/**
 * Generate time : 2011-12-22 10:17:01
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.ce.domain;

import java.util.HashMap;
import java.util.Map;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCEUnusualProblem table comment : 设备异常问题
 */
public class ZMCEUnusualProblem extends DaoEPBase {

	private String fdKeyId = " "; /* FD_KEY_ID */
	private String fdQuestionSource = " "; /* 异常问题来源 */
	private String fdWorkrecordId = " "; /* 工作记录ID */
	private String fdEquipmentId = " "; /* 对应设备ID */
	private String fdUseDepartmentId = " "; /* 设备使用单位ID */
	private String fdUseDepartment = " "; /* 设备使用单位 */
	private String fdDegree = " "; /* 严重程度 */
	private String fdDescription = " "; /* 异常描述 */
	private String fdStatus = " "; /* 处理状态 */
	private String fdSituation = " "; /* 处理情况 */
	private String fdPerson = " "; /* 记录人 */
	private String fdDatetime = " "; /* 记录时间 */
	private String fdProcessDepartment = " "; /* 处理部门 */
	private String fdProcessPerson = " "; /* 处理人 */
	private String fdProcessDatetime = " "; /* 处理时间 */
	private String fdSolveDepartment = " "; /* 实施部门 */
	private String fdSolvePerson = " "; /* 实施人 */
	private String fdSolveDatetime = " "; /* 实施时间 */
	
	private String fdEquipmentCode = " "; /* 设备编号 */
	private String fdEquipmentName = " "; /* 设备名称 */
	private String fdEquipmentSpecifications = " "; /* 规格 */
	private String fdEquipmentModel = " "; /* 型号 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("FD_KEY_ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdQuestionSource");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("异常问题来源");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdWorkrecordId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("工作记录ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdEquipmentId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("对应设备ID");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdUseDepartmentId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("设备使用单位ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdUseDepartment");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("设备使用单位");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDegree");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("严重程度");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDescription");
		eiColumn.setFieldLength(250);
		eiColumn.setDescName("异常描述");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdStatus");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("处理状态");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSituation");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("处理情况");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdPerson");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("记录人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDatetime");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("记录时间");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdProcessDepartment");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("处理部门");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdProcessPerson");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("处理人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdProcessDatetime");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("处理时间");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSolveDepartment");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("实施部门");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSolvePerson");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("实施人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSolveDatetime");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("实施时间");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdEquipmentCode");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("设备编号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdEquipmentName");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("设备名称");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdEquipmentSpecifications");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("规格");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdEquipmentModel");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("型号");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCEUnusualProblem() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - FD_KEY_ID
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdQuestionSource - 异常问题来源
	 * 
	 * @return the fdQuestionSource
	 */
	public String getFdQuestionSource() {
		return this.fdQuestionSource;
	}

	/**
	 * set the fdQuestionSource - 异常问题来源
	 */
	public void setFdQuestionSource(String fdQuestionSource) {
		this.fdQuestionSource = fdQuestionSource;
	}

	/**
	 * get the fdWorkrecordId - 工作记录ID
	 * 
	 * @return the fdWorkrecordId
	 */
	public String getFdWorkrecordId() {
		return this.fdWorkrecordId;
	}

	/**
	 * set the fdWorkrecordId - 工作记录ID
	 */
	public void setFdWorkrecordId(String fdWorkrecordId) {
		this.fdWorkrecordId = fdWorkrecordId;
	}

	/**
	 * get the fdEquipmentId - 对应设备ID
	 * 
	 * @return the fdEquipmentId
	 */
	public String getFdEquipmentId() {
		return this.fdEquipmentId;
	}

	/**
	 * set the fdEquipmentId - 对应设备ID
	 */
	public void setFdEquipmentId(String fdEquipmentId) {
		this.fdEquipmentId = fdEquipmentId;
	}
	
	/**
	 * get the fdUseDepartment - 设备使用单位ID
	 * 
	 * @return the fdUseDepartment
	 */
	public String getFdUseDepartmentId() {
		return this.fdUseDepartmentId;
	}

	/**
	 * set the fdUseDepartment - 设备使用单位ID
	 */
	public void setFdUseDepartmentId(String fdUseDepartmentId) {
		this.fdUseDepartmentId = fdUseDepartmentId;
	}

	/**
	 * get the fdUseDepartment - 设备使用单位
	 * 
	 * @return the fdUseDepartment
	 */
	public String getFdUseDepartment() {
		return this.fdUseDepartment;
	}

	/**
	 * set the fdUseDepartment - 设备使用单位
	 */
	public void setFdUseDepartment(String fdUseDepartment) {
		this.fdUseDepartment = fdUseDepartment;
	}

	/**
	 * get the fdDegree - 严重程度
	 * 
	 * @return the fdDegree
	 */
	public String getFdDegree() {
		return this.fdDegree;
	}

	/**
	 * set the fdDegree - 严重程度
	 */
	public void setFdDegree(String fdDegree) {
		this.fdDegree = fdDegree;
	}

	/**
	 * get the fdDescription - 异常描述
	 * 
	 * @return the fdDescription
	 */
	public String getFdDescription() {
		return this.fdDescription;
	}

	/**
	 * set the fdDescription - 异常描述
	 */
	public void setFdDescription(String fdDescription) {
		this.fdDescription = fdDescription;
	}

	/**
	 * get the fdStatus - 处理状态
	 * 
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}

	/**
	 * set the fdStatus - 处理状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}

	/**
	 * get the fdSituation - 处理情况
	 * 
	 * @return the fdSituation
	 */
	public String getFdSituation() {
		return this.fdSituation;
	}

	/**
	 * set the fdSituation - 处理情况
	 */
	public void setFdSituation(String fdSituation) {
		this.fdSituation = fdSituation;
	}

	/**
	 * get the fdPerson - 记录人
	 * 
	 * @return the fdPerson
	 */
	public String getFdPerson() {
		return this.fdPerson;
	}

	/**
	 * set the fdPerson - 记录人
	 */
	public void setFdPerson(String fdPerson) {
		this.fdPerson = fdPerson;
	}

	/**
	 * get the fdDatetime - 记录时间
	 * 
	 * @return the fdDatetime
	 */
	public String getFdDatetime() {
		return this.fdDatetime;
	}

	/**
	 * set the fdDatetime - 记录时间
	 */
	public void setFdDatetime(String fdDatetime) {
		this.fdDatetime = fdDatetime;
	}

	/**
	 * get the fdProcessDepartment - 处理部门
	 * 
	 * @return the fdProcessDepartment
	 */
	public String getFdProcessDepartment() {
		return this.fdProcessDepartment;
	}

	/**
	 * set the fdProcessDepartment - 处理部门
	 */
	public void setFdProcessDepartment(String fdProcessDepartment) {
		this.fdProcessDepartment = fdProcessDepartment;
	}

	/**
	 * get the fdProcessPerson - 处理人
	 * 
	 * @return the fdProcessPerson
	 */
	public String getFdProcessPerson() {
		return this.fdProcessPerson;
	}

	/**
	 * set the fdProcessPerson - 处理人
	 */
	public void setFdProcessPerson(String fdProcessPerson) {
		this.fdProcessPerson = fdProcessPerson;
	}

	/**
	 * get the fdProcessDatetime - 处理时间
	 * 
	 * @return the fdProcessDatetime
	 */
	public String getFdProcessDatetime() {
		return this.fdProcessDatetime;
	}

	/**
	 * set the fdProcessDatetime - 处理时间
	 */
	public void setFdProcessDatetime(String fdProcessDatetime) {
		this.fdProcessDatetime = fdProcessDatetime;
	}

	/**
	 * get the fdSolveDepartment - 实施部门
	 * 
	 * @return the fdSolveDepartment
	 */
	public String getFdSolveDepartment() {
		return this.fdSolveDepartment;
	}

	/**
	 * set the fdSolveDepartment - 实施部门
	 */
	public void setFdSolveDepartment(String fdSolveDepartment) {
		this.fdSolveDepartment = fdSolveDepartment;
	}

	/**
	 * get the fdSolvePerson - 实施人
	 * 
	 * @return the fdSolvePerson
	 */
	public String getFdSolvePerson() {
		return this.fdSolvePerson;
	}

	/**
	 * set the fdSolvePerson - 实施人
	 */
	public void setFdSolvePerson(String fdSolvePerson) {
		this.fdSolvePerson = fdSolvePerson;
	}

	/**
	 * get the fdSolveDatetime - 实施时间
	 * 
	 * @return the fdSolveDatetime
	 */
	public String getFdSolveDatetime() {
		return this.fdSolveDatetime;
	}

	/**
	 * set the fdSolveDatetime - 实施时间
	 */
	public void setFdSolveDatetime(String fdSolveDatetime) {
		this.fdSolveDatetime = fdSolveDatetime;
	}

	/**
	 * @return the fdEquipmentCode
	 */
	public String getFdEquipmentCode() {
		return fdEquipmentCode;
	}

	/**
	 * @param fdEquipmentCode the fdEquipmentCode to set
	 */
	public void setFdEquipmentCode(String fdEquipmentCode) {
		this.fdEquipmentCode = fdEquipmentCode;
	}

	/**
	 * @return the fdEquipmentName
	 */
	public String getFdEquipmentName() {
		return fdEquipmentName;
	}

	/**
	 * @param fdEquipmentName the fdEquipmentName to set
	 */
	public void setFdEquipmentName(String fdEquipmentName) {
		this.fdEquipmentName = fdEquipmentName;
	}

	/**
	 * @return the fdEquipmentSpecifications
	 */
	public String getFdEquipmentSpecifications() {
		return fdEquipmentSpecifications;
	}

	/**
	 * @param fdEquipmentSpecifications the fdEquipmentSpecifications to set
	 */
	public void setFdEquipmentSpecifications(String fdEquipmentSpecifications) {
		this.fdEquipmentSpecifications = fdEquipmentSpecifications;
	}

	/**
	 * @return the fdEquipmentModel
	 */
	public String getFdEquipmentModel() {
		return fdEquipmentModel;
	}

	/**
	 * @param fdEquipmentModel the fdEquipmentModel to set
	 */
	public void setFdEquipmentModel(String fdEquipmentModel) {
		this.fdEquipmentModel = fdEquipmentModel;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdQuestionSource(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdQuestionSource")), fdQuestionSource));
		setFdWorkrecordId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorkrecordId")), fdWorkrecordId));
		setFdEquipmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEquipmentId")), fdEquipmentId));
		setFdUseDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdUseDepartmentId")), fdUseDepartmentId));
		setFdUseDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdUseDepartment")), fdUseDepartment));
		setFdDegree(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDegree")), fdDegree));
		setFdDescription(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDescription")), fdDescription));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdSituation(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSituation")), fdSituation));
		setFdPerson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPerson")), fdPerson));
		setFdDatetime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDatetime")), fdDatetime));
		setFdProcessDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProcessDepartment")), fdProcessDepartment));
		setFdProcessPerson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProcessPerson")), fdProcessPerson));
		setFdProcessDatetime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProcessDatetime")), fdProcessDatetime));
		setFdSolveDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSolveDepartment")), fdSolveDepartment));
		setFdSolvePerson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSolvePerson")), fdSolvePerson));
		setFdSolveDatetime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSolveDatetime")), fdSolveDatetime));
		
		setFdEquipmentCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEquipmentCode")), fdEquipmentCode));
		setFdEquipmentName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEquipmentName")), fdEquipmentName));
		setFdEquipmentSpecifications(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEquipmentSpecifications")), fdEquipmentSpecifications));
		setFdEquipmentModel(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEquipmentModel")), fdEquipmentModel));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdQuestionSource", StringUtils.toString(fdQuestionSource, eiMetadata.getMeta("fdQuestionSource")));
		map.put("fdWorkrecordId", StringUtils.toString(fdWorkrecordId, eiMetadata.getMeta("fdWorkrecordId")));
		map.put("fdEquipmentId", StringUtils.toString(fdEquipmentId, eiMetadata.getMeta("fdEquipmentId")));
		map.put("fdUseDepartmentId", StringUtils.toString(fdUseDepartmentId, eiMetadata.getMeta("fdUseDepartmentId")));
		map.put("fdUseDepartment", StringUtils.toString(fdUseDepartment, eiMetadata.getMeta("fdUseDepartment")));
		map.put("fdDegree", StringUtils.toString(fdDegree, eiMetadata.getMeta("fdDegree")));
		map.put("fdDescription", StringUtils.toString(fdDescription, eiMetadata.getMeta("fdDescription")));
		map.put("fdStatus", StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));
		map.put("fdSituation", StringUtils.toString(fdSituation, eiMetadata.getMeta("fdSituation")));
		map.put("fdPerson", StringUtils.toString(fdPerson, eiMetadata.getMeta("fdPerson")));
		map.put("fdDatetime", StringUtils.toString(fdDatetime, eiMetadata.getMeta("fdDatetime")));
		map.put("fdProcessDepartment", StringUtils.toString(fdProcessDepartment, eiMetadata.getMeta("fdProcessDepartment")));
		map.put("fdProcessPerson", StringUtils.toString(fdProcessPerson, eiMetadata.getMeta("fdProcessPerson")));
		map.put("fdProcessDatetime", StringUtils.toString(fdProcessDatetime, eiMetadata.getMeta("fdProcessDatetime")));
		map.put("fdSolveDepartment", StringUtils.toString(fdSolveDepartment, eiMetadata.getMeta("fdSolveDepartment")));
		map.put("fdSolvePerson", StringUtils.toString(fdSolvePerson, eiMetadata.getMeta("fdSolvePerson")));
		map.put("fdSolveDatetime", StringUtils.toString(fdSolveDatetime, eiMetadata.getMeta("fdSolveDatetime")));
		
		map.put("fdEquipmentCode", StringUtils.toString(fdEquipmentCode, eiMetadata.getMeta("fdEquipmentCode")));
		map.put("fdEquipmentName", StringUtils.toString(fdEquipmentName, eiMetadata.getMeta("fdEquipmentName")));
		map.put("fdEquipmentSpecifications", StringUtils.toString(fdEquipmentSpecifications, eiMetadata.getMeta("fdEquipmentSpecifications")));
		map.put("fdEquipmentModel", StringUtils.toString(fdEquipmentModel, eiMetadata.getMeta("fdEquipmentModel")));

		return map;

	}
}